/*
 * @Description: 网站管理API接口
 * @Author: QianLong
 * @Date: 2019-07-07 19:06:52
 * @LastEditors    : QianLong
 * @LastEditTime   : 2023-03-14 14:37:59
 */
import http from '@/utils/http/axios'

export function getItemList(params) {
  return http.request({
    url: '/website/list',
    method: 'GET',
    params
  })
}
export function getSlideInfoData(params) {
  return http.request({
    url: '/website/getSlideInfo',
    method: 'GET',
    params
  })
}
export function getConInfo(params) {
  return http.request({
    url: '/website/getConInfo',
    method: 'GET',
    params
  })
}
export function getSubLists(params) {
  return http.request({
    url: '/website/getSubList',
    method: 'GET',
    params
  })
}
export function getMenuLists(params) {
  return http.request({
    url: '/website/getMenuList',
    method: 'GET',
    params
  })
}
export function getMediaLists(params) {
  return http.request({
    url: '/website/getMediaList',
    method: 'GET',
    params
  })
}
export function editData(params) {
  return http.request(
    {
      url: '/website/editItemInfo',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function editDataCon(params) {
  return http.request(
    {
      url: '/website/editConInfo',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function editDataSlide(params) {
  return http.request(
    {
      url: '/website/editSlideInfo',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function delSiteItem(params) {
  return http.request(
    {
      url: '/website/delItem',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function delSiteBatch(params) {
  return http.request(
    {
      url: '/website/del_site_batch',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function delSubItem(params) {
  return http.request(
    {
      url: '/website/delSubItem',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function delDgItem(params) {
  return http.request(
    {
      url: '/website/delDgItem',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function addData(params) {
  return http.request(
    {
      url: '/website/editItemInfo',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function getItemInfo(params) {
  return http.request({
    url: '/website/editItemInfo',
    method: 'GET',
    params
  })
}
